﻿using System;
using System.Collections.Generic;
using System.Text;

namespace CSharpExt.Util
{
    public static class ExceptionUtils
    {
        public static string ComposeException(Exception e)
        {
            StringBuilder sb = new StringBuilder();
            sb.Append(e.GetType().FullName)
                .Append(": ")
                .Append(e.Message)
                .Append("\n");

            return sb.ToString();
        }
    }
}
